package com.whw.service;


import com.whw.model.MyUser;

/**
 * Created by YangZhi on 2016/1/15.
 */
public interface MyUserService {
    /**
     *
     * @param account
     * @param password
     * @return
     */
    MyUser login(String account, String password);

    MyUser updateMyUser(MyUser updateMyUser);

    /**
     *
     * @param oldPassword
     * @param newPassword
     * @return
     */
    boolean updatePass(int id, String oldPassword, String newPassword);

    /**
     *
     * @param id
     * @return
     */
    MyUser findById(int id);

    /**
     *
     * @param id
     * @return
     */
    boolean deleteById(int id);

    /**
     *
     * @param myUser
     * @return
     */
    boolean addMyUser(MyUser myUser);

    MyUser findByName(String name);
}
